var ioc = {
    upload: {
        type: "org.nutz.mvc.upload.UploadAdaptor",
        args: [{
            type: "org.nutz.mvc.upload.UploadingContext",
            args: ["~/tmp"],
            fields: {
                nameFilter: '^.+\\.(jpg|png|gif|bmp|doc|xls|xlsx|docx|ppt|pptx|zip|rar|7z|pdf)$'
            }
        }]
    },
    json: {
        type: "org.nutz.mvc.view.UTF8JsonView",
        args: [{
            type: 'org.nutz.json.JsonFormat',
            fields: {
                autoUnicode: true
            }
        }]
    }
};